All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.util.ByteEncodedImage

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.util.ByteEncodedImage

public class ByteEncodedImage
extends QTByteObject
implements EncodedImage, Cloneable
ByteEncodedImages keep the encoded image data as an array of bytes.


Constructor Index

 o ByteEncodedImage(int)
Creates a new ByteEncodedImage of specified size.
 o ByteEncodedImage(int, int)
Creates a new ByteEncodedImage of specified size with the specified rowBytes
 o ByteEncodedImage(RawEncodedImage)
Creates a ByteEncodedImage from raw data.

Method Index

 o clone()
Returns a copy of the current object
 o fromByteArray(byte[])
This will make a ByteEncodedImage from an array of bytes.
 o fromByteArray(byte[], int)
This will make a ByteEncodedImage from an array of bytes.
 o getByte(int)
Returns the byte at the specified offset The offset is specified in bytes into the encoded image object.
 o getInt(int)
Returns the int at the specified offset The offset is specified in bytes into the encoded image object.
 o getRowBytes()
Returns either kRowBytesUnknown or the number of bytes per row that the encoded image data is comprised of.
 o getShort(int)
Returns the short at the specified offset The offset is specified in bytes into the encoded image object.

Constructors

 o ByteEncodedImage
 public ByteEncodedImage(RawEncodedImage ptr)
Creates a ByteEncodedImage from raw data. It will copy the data

 o ByteEncodedImage
 public ByteEncodedImage(int size)
Creates a new ByteEncodedImage of specified size.

 o ByteEncodedImage
 public ByteEncodedImage(int size,
                         int rowBytes)
Creates a new ByteEncodedImage of specified size with the specified rowBytes

Methods

 o fromByteArray
 public static ByteEncodedImage fromByteArray(byte ar[])
This will make a ByteEncodedImage from an array of bytes. It will not copy the byte array but creates a proxy for the same bytes.

 o fromByteArray
 public static ByteEncodedImage fromByteArray(byte ar[],
                                              int rowBytes)
This will make a ByteEncodedImage from an array of bytes. It will not copy the byte array but creates a proxy for the same bytes.

 o clone
 public Object clone()
Returns a copy of the current object

Overrides:
clone in class Object
 o getByte
 public byte getByte(int offset)
Returns the byte at the specified offset The offset is specified in bytes into the encoded image object.

 o getShort
 public short getShort(int offset)
Returns the short at the specified offset The offset is specified in bytes into the encoded image object.

 o getInt
 public int getInt(int offset)
Returns the int at the specified offset The offset is specified in bytes into the encoded image object.

 o getRowBytes
 public int getRowBytes()
Returns either kRowBytesUnknown or the number of bytes per row that the encoded image data is comprised of. This number will at least be as big as width*pixelSize, and maybe larger.


All Packages  Class Hierarchy  This Package  Previous  Next  Index